<template>
  <div class="page">
    <div class="title">修改客户等级</div>
    <div class="content">
      <div class="form">
        <ui-form :label-position="labelPosition" label-width="150px">
          <ui-form-item label="客户号：">
            <div class="value">123231</div>
          </ui-form-item>
          <ui-form-item label="客户名称：">
            <div class="value">张三</div>
          </ui-form-item>
          <ui-form-item label="管护机构：">
            <div class="value">xxxxxxxxxxxxxx</div>
          </ui-form-item>
          <ui-form-item label="当前等级：">
            <div class="value">v4</div>
          </ui-form-item>
          <ui-form-item label="变更等级：">
            <ui-select placeholder="请选择变更等级" v-model="form.customLevel" style="width: 300px">
              <ui-option v-for="(item, index) in customLevelList" :key="index" :value="item.id" :label="item.name"></ui-option>
            </ui-select>
          </ui-form-item>
          <ui-form-item label="有效期：">
            <ui-date-picker v-model="form.time" type="date" placeholder="选择有效期" style="width: 300px"> </ui-date-picker>
          </ui-form-item>
          <ui-form-item label="申请理由：">
            <ui-input placeholder="请输入申请理由" v-model="form.reason" type="textarea" :rows="5" style="width: 300px"> </ui-input>
          </ui-form-item>
        </ui-form>
      </div>
    </div>
    <div class="footer">
      <div class="buttonBox">
        <ui-button class="default-btn" @click="back">返回</ui-button>
        <ui-button class="primary-btn" @click="submit">确定</ui-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'customTransfer-ent',
  components: {},
  data() {
    return {
      labelPosition: 'right',
      form: {},
      customLevelList: [
        { id: 1, name: '等级一' },
        { id: 2, name: '等级二' },
      ],
    };
  },
  mounted() {
    console.log(this.$route.query);
  },
  methods: {
    back() {
      this.$router.back();
    },
    submit() {
      this.$router.push({
        path: '/customManager/customServeLevelApply',
        query: {
          customData: this.$route.query.customData,
          formData: this.form,
        },
      });
    },
  },
};
</script>


<style lang="scss" scoped>
.page {
  .title {
    font-size: 18px;
    color: #000;
    font-weight: bold;
  }
  .content {
    background: #fff;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 20px;
    margin-top: 20px;
    .form {
      margin-top: 50px;
    }
  }
  .footer {
    background: #fff;
    padding: 20px;

    .buttonBox {
      border-top: 1px solid #ccc;
      padding: 20px 10px 0 10px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
::v-deep .ui-date-editor--date .ui-input__prefix {
  left: 5px !important;
}
::v-deep .ui-date-editor--date .ui-input__inner {
  padding-left: 40px !important;
}
</style>